import request from '@/utils/request'

// 精选题库——精选题库列表
export function selectedList(params) {
    return request({
        url: '/questions/choice',
        params
    })
}

// 精选题库——试题审核
export function testingCheck(id, data) {
    return request({
        method: 'POST',
        url: `/questions/check/${id}`,
        data
    })
}

// 精选题库——试题的上架下架
export function testingPutaway(id, publishState) {
    return request({
        method: 'POST',
        url: `/questions/choice/${id}/${publishState}`
    })
}